﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Data;
using Maticsoft.DBUtility;

namespace DQYT.HTDZ.OracleDAL
{
    public class TB_CST_INFO_DAL
    {
        /// <summary>
        /// 查询字典数据
        /// </summary>
        /// <param name="cstType">常量类型</param>
        /// <returns></returns>
        public DataTable QueryConstItems(string cstType = null)
        {
            string querySql = "select cst_type, cst_type_desc, cst_num, cst_desc from tb_cst_info ";
            if (!string.IsNullOrWhiteSpace(cstType))
            {
                querySql = string.Concat(querySql, string.Format("  where cst_type={0}", cstType));
            }
            return DbHelperOra.Query_Table(querySql);
        }
    }
}
